<?php

namespace app\admin\validate;
use think\Validate;

class AdCat extends Validate
{
    protected $rule = [
        'name' 		=> 'require|unique:ad_cat',
    ];

    protected $message = [
        'name.require' 		=> '名称不能为空',
        'name.unique'  		=> '名称已存在',
    ];
}
